Skip to content

🚸 Workaround clang bug with consteval UDLs#242

Merged
lukevalenty merged 1 commit intointel:mainfrom
elbeno:workaround-clang-udl-bug
Jul 1, 2025
Merged

🚸 Workaround clang bug with consteval UDLs#242
lukevalenty merged 1 commit intointel:mainfrom
elbeno:workaround-clang-udl-bug

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 1, 2025

Problem:

  • clang has a persistent regression where it ICEs with the error "trying to emit a call to an immediate function". This seems to be provoked by consteval UDLs.

Solution:

  • When using clang, mark UDLs as constexpr rather than consteval.

Problem:
- clang has a persistent regression where it ICEs with the error "trying to
  emit a call to an immediate function". This seems to be provoked by
  `consteval` UDLs.

Solution:
- When using clang, mark UDLs as `constexpr` rather than `consteval`.
@lukevalenty lukevalenty enabled auto-merge July 1, 2025 23:21
@lukevalenty lukevalenty merged commit effadd4 into intel:main Jul 1, 2025
42 checks passed
@elbeno elbeno deleted the workaround-clang-udl-bug branch October 16, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants